<template>
    <div>
        <h3>---------Suspense组件赖加载-----------------</h3>
        <Suspense>
            <template v-slot:default>
                <sonComp></sonComp>
            </template>
            <template v-slot:fallback>
                <p>111111111111111111组件加载中.....</p>
            </template>
        </Suspense>
    </div>
</template>

<script>
import { defineAsyncComponent } from 'vue';
let sonComp = defineAsyncComponent(() => import("./son.vue"))
export default {
    setup() { },
    components: { sonComp }
};
</script>

<style scoped></style>
